package com.mss.media.enumeration;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum UserRoleType implements IEnum<Integer> {

    /**
     * 普通用户
     */
    ORDINARY(0,"普通用户"),
    /**
     * 设计师
     */
    DESIGNER(1,"设计师"),
    /**
     * 商家
     */
    MERCHANTS(2,"商家");

    private final Integer code;
    private final String desc;

    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
